package com.aiguigu.gulimall.auth.feign;

import com.aiguigu.gulimall.auth.vo.GiteeSocialUserVo;
import com.aiguigu.gulimall.auth.vo.UserLoginVo;
import com.aiguigu.gulimall.auth.vo.UserRegisterVo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/*
* 会员服务
* */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * 注册
     */
    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegisterVo user);

    /**
     * 登录
     */
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/gitee/oauth2/login")
    public R oauthLogin(@RequestBody GiteeSocialUserVo user);
}
